﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestApp
{
    class Program
    {
        static void Method1()
        {
            Method2();
        }

        static void Method2()
        {
            Method3();
        }
        
        static void Method3()
        {
            throw new Exception("foo");
        }


        static void Main(string[] args)
        {
            System.Console.WriteLine("Hello world!");

            try
            {
                Method1();
            }
            catch (Exception)
            {
                System.Console.WriteLine("Exception");
            }
            finally
            {
                System.Console.WriteLine("Finally");
            }
        }
    }
}
